package com.chuku.service;

import com.bean.WmsTBill;
import com.bean.WmsTBillDetails;
import com.bean.WmsTCustomer;
import com.bean.WmsTStore;
import com.chuku.mapper.ChukuMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ChukuService {

    @Autowired
    ChukuMapper chukuMapper;
    public List<WmsTCustomer> getManyHuozhu(String custName)
    {
        return chukuMapper.getManyHuozhu(custName);
    }

    public List<WmsTBillDetails> getManyMingxi(String customerId)
    {

        return chukuMapper.getManyMingxi(customerId);
    }
    public void accordingTrayidByTraystate(String trayId)
    {
        chukuMapper.accordingTrayidByTraystate(trayId);
    }
    public void addMingxi(WmsTBill wmsTBill) {

        chukuMapper.addMingxi(wmsTBill);
    }

    public List<WmsTStore> getManyCangkuName()
    {

        return chukuMapper.getManyCangkuName();
    }
    public void insert2(WmsTBillDetails ad){
        chukuMapper.insert2(ad);
    }
    public List<Map<String,Object>> getAll(String storeId)
    {
        System.out.println("我走到service了");
        return chukuMapper.getAll(storeId);
    }

    public List<Map<String, Object>> selectChukujilu(String billId, String custName, String time1, String time2) {
        return chukuMapper.selectChukujilu(billId,custName,time1,time2);
    }

    public List<Map<String, Object>> selectChukumingxi(String billId, String custName, String time1, String time2) {
        return chukuMapper.selectChukumingxi(billId,custName,time1,time2);
    }
}
